<html>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<head>
<title>Section 2.2.&nbsp; Working Remotely</title>
<link rel="STYLESHEET" type="text/css" href="images/style.css">
<link rel="STYLESHEET" type="text/css" href="images/docsafari.css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=learnphpmysql-CHP-2-SECT-1.html><img src="images/prev.gif" width="60" height="17" border="0" align="absmiddle" alt="Previous Page"></a>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=learnphpmysql-CHP-2-SECT-3.html><img src="images/next.gif" width="60" height="17" border="0" align="absmiddle" alt="Next Page"></a>
</div></td></tr></table>
<br><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><a name="learnphpmysql-CHP-2-SECT-2"></a>
<h3 id="title-IDAXMBXG" class="docSection1Title">2.2. Working Remotely</h3>
<a name="IDX-CHP-2-0048"></a> 
<a name="IDX-CHP-2-0049"></a> 

<p class="docText">Although we recommend you start out working locally, you can use an ISP account as long as it supports PHP and MySQL.</p>
<p class="docText">You need login information to the remote server, and you may need to use your ISP's web-based tool to create your database.</p>
<p class="docText">To transfer your files and directories, you need to activate a File Transfer Protocol (FTP) account at your ISP, usually through your account control panel. Once you have an FTP login, you upload your HTML and PHP files using a FTP client.</p>
<p class="docText">While your computer likely has the command-line version of the FTP client available from the command prompt, it can be cryptic to use. Graphical FTP clients make using FTP much easier. FTP Voyager, available from <a class="docLink" target="_blank" href="http://sourceforge.net/projects/filezilla/">http://sourceforge.net/projects/filezilla/</a>, is one FTP client you can use to upload files to your ISP. Your initial login screen looks similar to <a class="docLink" href="#learnphpmysql-CHP-2-FIG-25">Figure 2-25</a>. Fetch is a good FTP program for the Macintosh.</p>
<a name="learnphpmysql-CHP-2-FIG-25"></a><p><center>
<h5 class="docFigureTitle">Figure 2-25. FTP Voyager initial screen</h5>
<img border="0" alt="" width="549" height="331" SRC="images/learnphpmysql_0225.jpg">
</center></p><br>
<p class="docText">After connecting, you see a dialog similar to <a class="docLink" href="#learnphpmysql-CHP-2-FIG-26">Figure 2-26</a>, but you do not see the identical screen as this FTP Voyager screen. You can drag and drop the <span class="docEmphasis">.php</span> file you created. Remember, for your PHP file to run you need to save it with an extension of <span class="docEmphasis">.php</span> instead of <span class="docEmphasis">.html</span>; otherwise, it won't run, because the web server needs to know it's a PHP file in order to run the PHP interpreter.</p>
<a name="learnphpmysql-CHP-2-FIG-26"></a><P><center>
<h5 class="docFigureTitle">Figure 2-26. FTP Voyager directory listing</h5>
<img border="0" alt="" width="549" height="333" SRC="images/learnphpmysql_0226.jpg">
</center></P><BR>
<p class="docText">PHP files must be accessed through a web server since your web browser doesn't have the ability to interpret the PHP code. A PHP interpreter is used to process the PHP files.</p>
<p class="docText">You're ready to start learning all about basic facts, integration, and how to get your dynamic web page up and running as quickly and smoothly as possible. In the next chapter, we'll give you basic information about PHP and simple coding principles that apply to using PHP.</P>

</TD></TR></table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=learnphpmysql-CHP-2-SECT-1.html><img src="images/prev.gif" width="60" height="17" border="0" align="absmiddle" alt="Previous Page"></a>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=learnphpmysql-CHP-2-SECT-3.html><img src="images/next.gif" width="60" height="17" border="0" align="absmiddle" alt="Next Page"></a>
</div></td></tr></table>
<script type="text/javascript"><!--
google_ad_client = "pub-0203281046321155";
google_alternate_ad_url = "http://www.bookhtml.com/adbrite.htm";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="4867465545";
google_color_border = "FFFFFF";
google_color_link = "0000FF";
google_color_bg = "FFFFFF";
google_color_text = "000000";
google_color_url = "0000FF";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</html>
